<form method='get' action='/category/select'>
  <select id='select_cat_for_search' name='cat_id'>
    <?php foreach($this->cats as $id=>$name){?>
    <option value="<?php echo $id;?>" <?php echo '<'.'?php echo isset($_GET[\'cat_id\']) && '.$id.'==$_GET[\'cat_id\']'. '? \'selected\':\'\';?>';?>><?php echo $name;?>
    </option>
    <?php }?>
  </select>
  <input type='text' id='input_search' name='keywords' size='20' value="<?php echo '<'.'?php echo isset($_GET[\'keywords\'])'. '? $_GET[\'keywords\'] : \'\';?>';?>"/>
  <input type='submit' id='bt_search' name='submit' value='搜索'/>
</form>

